- 下载
node.js
http://nodejs.org/download/
- 安装
node
[root@li637-23 data]# wget http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz
--2014-10-14 13:30:21-- http://nodejs.org/dist/v0.10.32/node-v0.10.32-linux-x64.tar.gz
Resolving nodejs.org... 165.225.133.150
Connecting to nodejs.org|165.225.133.150|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5643126 (5.4M) [application/octet-stream]
Saving to: “node-v0.10.32-linux-x64.tar.gz”
100%[===============================================================================================================================>] 5,643,126 129K/s in 64s
2014-10-14 13:31:26 (86.1 KB/s) - “node-v0.10.32-linux-x64.tar.gz” saved [5643126/5643126]
[root@li637-23 data]# tar -vxf node-v0.10.32-linux-x64.tar.gz
vim ~/.bashrc
export PATH="${PATH}:/root/data/node-v0.10.32-linux-x64/bin"
安装gcc tty.js
yum install gcc-c++
[root@li637-23 ~]# npm install tty.js
编写tty.js
```
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。